<?php
/**
 * User: hufeng
 * Date: 2016/12/13
 * Desc: 首页
 */

namespace Admin\Controller;

use Model\OrderModel;
use Model\UserModel;

class IndexController extends BaseController{

    public function index(){
        //注册用户
        $uModel = new UserModel();
        $unum = $uModel->getTotalNum(['status'=>1]);
        $this->assign('unum',$unum);
        //待派单订单数
        $oModel = new OrderModel();
        $onum = $oModel->getTotalNum(['order_type'=>1,'status'=>2]);
        $this->assign('onum',$onum);
        $this->display('index/index');
    }
}